.class public Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "CropVideoActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private A:I

.field private m:Les/cd;

.field private n:Landroid/graphics/RectF;

.field private o:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

.field private p:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

.field private q:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

.field private r:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

.field private s:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

.field private t:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

.field private u:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;",
            ">;"
        }
    .end annotation
.end field

.field private v:I

.field private final w:[Ljava/lang/String;

.field private x:Landroid/widget/TextView;

.field private y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

.field private z:I


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "RotateRender"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    .line 2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->w:[Ljava/lang/String;

    .line 3
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->z:I

    .line 4
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->A:I

    return-void
.end method

.method private J()V
    .locals 6

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    const/4 v1, 0x0

    const/4 v2, 0x1

    const/4 v3, 0x2

    if-ne v0, v3, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    goto :goto_0

    :cond_0
    const/4 v3, 0x3

    if-ne v0, v3, :cond_1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    goto :goto_0

    :cond_1
    const/4 v3, 0x4

    if-ne v0, v3, :cond_2

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->r:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    goto :goto_0

    :cond_2
    const/4 v3, 0x5

    if-ne v0, v3, :cond_3

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->s:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    goto :goto_0

    :cond_3
    const/4 v3, 0x6

    if-ne v0, v3, :cond_4

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->t:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    goto :goto_0

    .line 7
    :cond_4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    const/4 v2, 0x0

    .line 8
    :goto_0
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    new-instance v3, Landroid/graphics/Rect;

    iget v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->z:I

    iget v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->A:I

    invoke-direct {v3, v1, v1, v4, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    invoke-virtual {v0, v3}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setImageRect(Landroid/graphics/Rect;)V

    .line 10
    invoke-direct {p0, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->h(Z)V

    return-void
.end method

.method private K()Ljava/lang/String;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    if-eqz v0, :cond_6

    iget-object v0, v0, Les/cd;->i:Les/cd$d;

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget v0, v0, Les/cd$d;->b:I

    const/4 v1, 0x2

    if-eq v0, v1, :cond_5

    const/4 v1, 0x3

    if-eq v0, v1, :cond_4

    const/4 v1, 0x4

    if-eq v0, v1, :cond_3

    const/4 v1, 0x5

    if-eq v0, v1, :cond_2

    const/4 v1, 0x6

    if-eq v0, v1, :cond_1

    const-string v0, "free"

    return-object v0

    :cond_1
    const-string v0, "9-16"

    return-object v0

    :cond_2
    const-string v0, "16-9"

    return-object v0

    :cond_3
    const-string v0, "3-4"

    return-object v0

    :cond_4
    const-string v0, "4-3"

    return-object v0

    :cond_5
    const-string v0, "1-1"

    return-object v0

    :cond_6
    :goto_0
    const-string v0, ""

    return-object v0
.end method

.method private L()V
    .locals 2

    .line 1
    sget v0, Les/x4;->durec_crop_ratio_free_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    .line 2
    sget v0, Les/x4;->durec_crop_ratio_1_1_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    .line 3
    sget v0, Les/x4;->durec_crop_ratio_4_3_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    .line 4
    sget v0, Les/x4;->durec_crop_ratio_3_4_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->r:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    .line 5
    sget v0, Les/x4;->durec_crop_ratio_16_9_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->s:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    .line 6
    sget v0, Les/x4;->durec_crop_ratio_9_16_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->t:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->r:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->s:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->t:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->r:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->s:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->t:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private M()V
    .locals 2

    .line 1
    sget v0, Les/x4;->crop_preview_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->x:Landroid/widget/TextView;

    .line 2
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setOnCropImageViewListener(Lcom/esfile/screen/recorder/picture/crop/CropImageView$b;)V

    return-void
.end method

.method private N()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/crop/b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;)V

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Landroid/view/View;)V

    return-void
.end method

.method private O()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->P()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->Q()V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->R()V

    return-void
.end method

.method private P()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->g:Les/cd$c;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v0

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->z:I

    int-to-float v1, v1

    mul-float v0, v0, v1

    float-to-int v0, v0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v1}, Landroid/graphics/RectF;->height()F

    move-result v1

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->A:I

    int-to-float v2, v2

    mul-float v1, v1, v2

    float-to-int v1, v1

    if-le v0, v1, :cond_1

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd;->g:Les/cd$c;

    .line 5
    sget v0, Les/z4;->durec_remove_background_warn:I

    invoke-static {v0}, Les/ec;->a(I)V

    :cond_1
    return-void
.end method

.method private Q()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v0

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->z:I

    int-to-float v1, v1

    mul-float v0, v0, v1

    float-to-int v0, v0

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v1}, Landroid/graphics/RectF;->height()F

    move-result v1

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->A:I

    int-to-float v2, v2

    mul-float v1, v1, v2

    float-to-int v1, v1

    .line 3
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->e:Les/cd$q;

    if-eqz v2, :cond_0

    .line 4
    iget-object v2, v2, Les/cd$q;->a:Ljava/util/List;

    invoke-static {p0, v2, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/r;->a(Landroid/content/Context;Ljava/util/List;II)V

    .line 5
    :cond_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->l:Les/cd$k;

    if-eqz v2, :cond_1

    .line 6
    iget-object v2, v2, Les/cd$k;->a:Ljava/util/List;

    invoke-static {p0, v2, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/k;->a(Landroid/content/Context;Ljava/util/List;II)V

    :cond_1
    return-void
.end method

.method private R()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->f:Les/cd$e;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v1, v0, Les/cd$e;->a:Les/cd$g;

    .line 3
    iget-object v0, v0, Les/cd$e;->b:Les/cd$g;

    if-nez v1, :cond_1

    if-nez v0, :cond_1

    return-void

    :cond_1
    if-eqz v1, :cond_2

    .line 4
    iget-boolean v0, v1, Les/cd$g;->l:Z

    goto :goto_0

    .line 5
    :cond_2
    iget-boolean v0, v0, Les/cd$g;->l:Z

    .line 6
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->g:Les/cd$c;

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_3

    if-eqz v0, :cond_5

    :goto_1
    const/4 v2, 0x1

    goto :goto_3

    .line 7
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v1}, Landroid/graphics/RectF;->width()F

    move-result v1

    iget v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->z:I

    int-to-float v4, v4

    mul-float v1, v1, v4

    float-to-int v1, v1

    .line 8
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v4}, Landroid/graphics/RectF;->height()F

    move-result v4

    iget v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->A:I

    int-to-float v5, v5

    mul-float v4, v4, v5

    float-to-int v4, v4

    if-ge v1, v4, :cond_4

    const/4 v1, 0x1

    goto :goto_2

    :cond_4
    const/4 v1, 0x0

    :goto_2
    xor-int/2addr v0, v1

    if-eqz v0, :cond_5

    goto :goto_1

    :cond_5
    :goto_3
    if-eqz v2, :cond_6

    .line 9
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->c()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->f:Les/cd$e;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a(Les/cd$e;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd;->f:Les/cd$e;

    .line 11
    sget v0, Les/z4;->durec_edit_intro_and_outro_invalid:I

    invoke-static {v0}, Les/ec;->a(I)V

    :cond_6
    return-void
.end method

.method private S()V
    .locals 3

    const/4 v0, 0x5

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->s:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    const/high16 v0, 0x41800000    # 16.0f

    const/high16 v1, 0x41100000    # 9.0f

    const/4 v2, 0x1

    .line 3
    invoke-direct {p0, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(FFZ)V

    const-string v0, "16-9"

    .line 4
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->a(Ljava/lang/String;)V

    return-void
.end method

.method private T()V
    .locals 2

    const/4 v0, 0x2

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    const/high16 v0, 0x3f800000    # 1.0f

    const/4 v1, 0x1

    .line 3
    invoke-direct {p0, v0, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(FFZ)V

    const-string v0, "1-1"

    .line 4
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->a(Ljava/lang/String;)V

    return-void
.end method

.method private U()V
    .locals 3

    const/4 v0, 0x4

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->r:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    const/high16 v0, 0x40400000    # 3.0f

    const/high16 v1, 0x40800000    # 4.0f

    const/4 v2, 0x1

    .line 3
    invoke-direct {p0, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(FFZ)V

    const-string v0, "3-4"

    .line 4
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->a(Ljava/lang/String;)V

    return-void
.end method

.method private V()V
    .locals 3

    const/4 v0, 0x3

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    const/high16 v0, 0x40800000    # 4.0f

    const/high16 v1, 0x40400000    # 3.0f

    const/4 v2, 0x1

    .line 3
    invoke-direct {p0, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(FFZ)V

    const-string v0, "4-3"

    .line 4
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->a(Ljava/lang/String;)V

    return-void
.end method

.method private W()V
    .locals 3

    const/4 v0, 0x6

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->t:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    const/high16 v0, 0x41100000    # 9.0f

    const/high16 v1, 0x41800000    # 16.0f

    const/4 v2, 0x1

    .line 3
    invoke-direct {p0, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(FFZ)V

    const-string v0, "9-16"

    .line 4
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->a(Ljava/lang/String;)V

    return-void
.end method

.method private X()V
    .locals 2

    const/4 v0, 0x1

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->o:Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V

    const/high16 v0, -0x40800000    # -1.0f

    const/4 v1, 0x0

    .line 3
    invoke-direct {p0, v0, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(FFZ)V

    const-string v0, "free"

    .line 4
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->a(Ljava/lang/String;)V

    return-void
.end method

.method private Y()V
    .locals 6

    .line 1
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v1

    .line 2
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Les/cd;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->w:[Ljava/lang/String;

    array-length v2, v0

    add-int/lit8 v2, v2, 0x1

    invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, [Ljava/lang/String;

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->w:[Ljava/lang/String;

    array-length v0, v0

    const-string v3, "CropRender"

    aput-object v3, v2, v0

    const/4 v3, 0x1

    const-string v4, "crop"

    const/16 v5, 0xe

    move-object v0, p0

    .line 5
    invoke-static/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditPreviewActivity;->a(Landroid/app/Activity;Les/cd;[Ljava/lang/String;ILjava/lang/String;I)V

    return-void
.end method

.method private Z()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->C()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Les/cd;)V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->O()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    invoke-static {v0}, Les/dd;->a(Les/cd;)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->K()Ljava/lang/String;

    move-result-object v0

    .line 6
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 7
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/k;->c(Ljava/lang/String;)V

    .line 8
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;)Lcom/esfile/screen/recorder/picture/crop/CropImageView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    return-object p0
.end method

.method private a(FFZ)V
    .locals 1

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->a(FF)V

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1, p3}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setMaintainAspectRatio(Z)V

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->c()V

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->getCropRatioRect()Landroid/graphics/RectF;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Landroid/graphics/RectF;)V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 27
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 28
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 29
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 30
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/graphics/RectF;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v0, p1}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V

    :cond_0
    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;)V
    .locals 2

    if-eqz p1, :cond_3

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    if-eqz v0, :cond_3

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_1

    .line 15
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->u:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;

    if-nez v1, :cond_1

    goto :goto_0

    :cond_1
    if-ne v1, p1, :cond_2

    .line 16
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;->a()V

    goto :goto_0

    .line 17
    :cond_2
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropRatioSelectableButton;->b()V

    goto :goto_0

    :cond_3
    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;Landroid/graphics/RectF;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->a(Landroid/graphics/RectF;)V

    return-void
.end method

.method private a(Les/cd;)V
    .locals 4

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    iget v1, v0, Landroid/graphics/RectF;->left:F

    const/4 v2, 0x0

    cmpl-float v1, v1, v2

    if-nez v1, :cond_0

    iget v1, v0, Landroid/graphics/RectF;->right:F

    const/high16 v3, 0x3f800000    # 1.0f

    cmpl-float v1, v1, v3

    if-nez v1, :cond_0

    iget v1, v0, Landroid/graphics/RectF;->top:F

    cmpl-float v1, v1, v2

    if-nez v1, :cond_0

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    cmpl-float v0, v0, v3

    if-nez v0, :cond_0

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    .line 19
    iput-object v0, p1, Les/cd;->i:Les/cd$d;

    goto :goto_1

    .line 20
    :cond_0
    iget-object v0, p1, Les/cd;->i:Les/cd$d;

    if-nez v0, :cond_1

    .line 21
    new-instance v0, Les/cd$d;

    invoke-direct {v0}, Les/cd$d;-><init>()V

    iput-object v0, p1, Les/cd;->i:Les/cd$d;

    .line 22
    new-instance v1, Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-direct {v1, v2}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V

    iput-object v1, v0, Les/cd$d;->a:Landroid/graphics/RectF;

    goto :goto_0

    .line 23
    :cond_1
    iget-object v1, v0, Les/cd$d;->a:Landroid/graphics/RectF;

    if-nez v1, :cond_2

    .line 24
    new-instance v1, Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-direct {v1, v2}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V

    iput-object v1, v0, Les/cd$d;->a:Landroid/graphics/RectF;

    goto :goto_0

    .line 25
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V

    .line 26
    :goto_0
    iget-object p1, p1, Les/cd;->i:Les/cd$d;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    iput v0, p1, Les/cd$d;->b:I

    :goto_1
    return-void
.end method

.method private h(Z)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setCropRatioRect(Landroid/graphics/RectF;)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setMaintainAspectRatio(Z)V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->c()V

    return-void
.end method


# virtual methods
.method protected C()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->i:Les/cd$d;

    iget-object v1, v1, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-virtual {v0, v1}, Landroid/graphics/RectF;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->i:Les/cd$d;

    iget v1, v1, Les/cd$d;->b:I

    if-eq v0, v1, :cond_1

    :cond_0
    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method protected F()V
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;)V

    const-string v1, "crop"

    invoke-static {p0, v0, v1}, Les/s4;->a(Landroid/content/Context;Les/s4$a;Ljava/lang/String;)V

    return-void
.end method

.method public synthetic I()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->Z()V

    return-void
.end method

.method public synthetic a(II)V
    .locals 1

    .line 4
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->z:I

    .line 5
    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->A:I

    .line 6
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, p1, p2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->y:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->J()V

    return-void
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->w:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method protected c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;->b(Z)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    const/4 p3, 0x1

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->Z()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    .line 2
    sget v0, Les/x4;->crop_preview_btn:I

    if-ne p1, v0, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->Y()V

    goto :goto_0

    .line 4
    :cond_0
    sget v0, Les/x4;->durec_crop_ratio_free_btn:I

    if-ne p1, v0, :cond_1

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->X()V

    goto :goto_0

    .line 6
    :cond_1
    sget v0, Les/x4;->durec_crop_ratio_1_1_btn:I

    if-ne p1, v0, :cond_2

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->T()V

    goto :goto_0

    .line 8
    :cond_2
    sget v0, Les/x4;->durec_crop_ratio_4_3_btn:I

    if-ne p1, v0, :cond_3

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->V()V

    goto :goto_0

    .line 10
    :cond_3
    sget v0, Les/x4;->durec_crop_ratio_3_4_btn:I

    if-ne p1, v0, :cond_4

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->U()V

    goto :goto_0

    .line 12
    :cond_4
    sget v0, Les/x4;->durec_crop_ratio_16_9_btn:I

    if-ne p1, v0, :cond_5

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->S()V

    goto :goto_0

    .line 14
    :cond_5
    sget v0, Les/x4;->durec_crop_ratio_9_16_btn:I

    if-ne p1, v0, :cond_6

    .line 15
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->W()V

    :cond_6
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    sget p1, Les/y4;->durec_video_edit_crop_video_layout:I

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->h(I)V

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->L()V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->M()V

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->N()V

    .line 7
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    .line 8
    iget-object v0, p1, Les/cd;->i:Les/cd$d;

    if-nez v0, :cond_1

    .line 9
    new-instance v0, Les/cd$d;

    invoke-direct {v0}, Les/cd$d;-><init>()V

    iput-object v0, p1, Les/cd;->i:Les/cd$d;

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object p1, p1, Les/cd;->i:Les/cd$d;

    new-instance v0, Landroid/graphics/RectF;

    const/high16 v1, 0x3f800000    # 1.0f

    const/4 v2, 0x0

    invoke-direct {v0, v2, v2, v1, v1}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v0, p1, Les/cd$d;->a:Landroid/graphics/RectF;

    .line 11
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object p1, p1, Les/cd;->i:Les/cd$d;

    iget p1, p1, Les/cd$d;->b:I

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->v:I

    .line 12
    new-instance p1, Landroid/graphics/RectF;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->i:Les/cd$d;

    iget-object v0, v0, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-direct {p1, v0}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/crop/CropVideoActivity;->n:Landroid/graphics/RectF;

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "\u89c6\u9891\u88c1\u5207\u9875\u9762"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_ok:I

    return v0
.end method

.method protected y()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_crop:I

    return v0
.end method
